const util = require('../../../utils/util.js')

function requestProducts(page, auctionStatus, callback) {
  let param = { "startPage": page, "auctionStatus": auctionStatus, "userId": getApp().globalData.userId}
    
  getApp().func.Post(false, getApp().api.user_aution_list, param,
    function (data) {
      typeof callback == "function" && callback(data)
    },
    function (error) {
      wx.showToast({
        title: error.data.message,
        icon: 'none',
        duration: 2000,
      })
    }
  )
};


module.exports = {
  requestProducts: requestProducts
};